package com.dq.controller.op.opboss.finance;

import com.dq.exception.customException.AdminException;
import com.dq.controller.in.ServiceRecordQuery;
import com.dq.vo.Vo;
import com.dq.service.AllService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author luchangtong
 * @Date 2019/12/24 19:25
 */
@RestController
@RequestMapping("/sys/boss/serviceRecord")
@Api(description = "手工费")
public class ServiceRecordController extends AllService {


    @ApiOperation("手工费列表")
    @PostMapping("list")
    public Vo list(@RequestBody ServiceRecordQuery serviceRecordQuery) throws AdminException{
        return serviceRecordService.list(serviceRecordQuery);
    }
}
